<%--
说明：NSCG信息表 增加/修改页面

@author liuxun 2012-03-13
--%>
<%@ include file="../../common/common.jsp"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />

<title><c:if test="${operationType == 0 }">新增</c:if> <c:if test="${ operationType == 1}">编辑</c:if>NSCG信息</title>
<script src="jsp/rscaccount/c_bastion/c_bastion_edit.js" type="text/javascript" charset="UTF-8"></script>
</head>

<body>

  <form id="opeForm" name="opeForm" method="post" action="">

    <%-- 操作类型 0录入 1修改 --%>
    <input type="hidden" id="operationType" name="operationType" value="${operationType}" /> 
    <input type="hidden" id="bastion_id" name="model.bastion_id" value="${model.bastion_id}" />
    <input type="hidden" id="bastion_status" name="model.bastion_status" value="${model.bastion_status}" />
	<c:if test="${operationType==1}">
		<input type="hidden" id="node_id" name="model.node_id" value="${model.node_id}" />
    </c:if>
    <table style="width: 100%; height: 100%" border="0" cellpadding="0" cellspacing="0" class="editDisplay">
      <tr>
        <td valign="top">
          <%--编辑页面名称标题表格--%>
          <table style="width: 100%" border="0" cellpadding="0" cellspacing="0" class="editCaption">
            <tr>
              <td height="30">&nbsp;</td>
            </tr>
            <tr>
              <td align="center"><font class="editCaptionTitle"><c:if test="${operationType == 0 }">新增</c:if> <c:if test="${ operationType == 1}">编辑</c:if>NSCG信息</font></td>
            </tr>
            <tr>
              <td height="5"></td>
            </tr>
          </table> <%--编辑部分表格--%>
          <table border="0" align="center" cellpadding="0" cellspacing="0" class="editTableBorder">
            <tr>
              <td>
                <table border="0" align="center" cellpadding="0" cellspacing="0" class="editMainTable">
                  <tr>
                    <td style="height: 40px;" colspan="2" class="editMainConstLabelTD">&nbsp;</td>
                  </tr>
                  
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">节点名称：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    	<c:if test="${operationType==1}">
                    		<ext:property cachetype="P_NODE" resultprop="node_name" condnames="node_code" condvalues="${model.node_id}" />
                    	</c:if>
                    	<c:if test="${operationType==0}">
                    		<ext:select id="node_id" name="model.node_id" cachetype="P_NODE" nameprop="node_name" valueprop="node_code" condnames="node_status" condvalues="01" initvalue="${model.node_id}" style="width:150px" orderby="node_code desc" cannull="1" /> &nbsp;<span><font color="red">*</font> </span>
                    	</c:if>                    	
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">NSCG名称：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="bastion_name" name="model.bastion_name" required="true" validType="maxLength[50]" class="easyui-validatebox  editMainText" value="${model.bastion_name}" /> &nbsp;<span><font color="red">*</font> </span>
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">NSCG IP：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="bastion_ip" name="model.bastion_ip" required="true" validType="checkIp" class="easyui-validatebox  editMainText" value="${model.bastion_ip}"> &nbsp;<span><font color="red">*</font> </span>
                    </td>
                  </tr>
                  
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">NSCG 管理员：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="bastion_admin" name="model.bastion_admin" required="true" validType="" class="easyui-validatebox  editMainText" value="${model.bastion_admin}"> &nbsp;<span><font color="red">*</font> </span>
                    </td>
                  </tr>
                  
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">NSCG 密码：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="password" id="bastion_pwd" name="model.bastion_pwd" required="true" validType="" class="easyui-validatebox  editMainText"> &nbsp;<span><font color="red">*</font> </span>
                    </td>
                  </tr>
                  
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">NSCG 序列号：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="bastion_number" name="model.bastion_number" required="true" validType="" class="easyui-validatebox  editMainText" value="${model.bastion_number}"> &nbsp;<span><font color="red">*</font> </span>
                    </td>
                  </tr>                                                      

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">描述：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="bastion_desc" name="model.bastion_desc" validType="" class="easyui-validatebox  editMainText" value="${model.bastion_desc}" />
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainConstTD" colspan="2">&nbsp;&nbsp;说明：带<span><font color="red">*</font> </span>的项目是必须填写项</td>
                  </tr>
                  <tr>
                    <td style="height: 40px;" colspan="2" class="editMainConstLabelTD">&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2" class="editMainBottomTD">&nbsp;
                      <div style="text-align: center; padding: 5px;">
                        <a href="javascript:void(0)" id="okBtn" icon="icon-save" class="easyui-linkbutton">保存</a> <a href="javascript:void(0)" id="cancelBtn" icon="icon-cancel" class="easyui-linkbutton">取消</a>
                      </div>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>

  </form>

</body>
</html>